<div class=" animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>查询条件</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                                v-on:click="_moreCondition()">{{reportPayFeeDetailInfo.moreCondition == true?'隐藏':'更多'}}
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="form-group input-group">
                                <input type="text" placeholder="请选择楼栋"
                                       v-model="reportPayFeeDetailInfo.conditions.floorName" class=" form-control">
                                <div class="input-group-prepend">
                                    <button type="button" class="btn btn-primary btn-sm"
                                            v-on:click="_openChooseFloorMethod()">
                                        <i class="fa fa-search"></i> 选择
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <select class="form-control-md form-control input-s-sm inline"
                                        v-model="reportPayFeeDetailInfo.conditions.unitId">
                                    <option selected value="">请选择单元</option>
                                    <option v-for="(unit,index) in reportPayFeeDetailInfo.roomUnits" :key="index"
                                            v-bind:value="unit.unitId">
                                        {{unit.unitNum}}单元
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" placeholder="请填写房屋编号" class="form-control form-control-md"
                                       v-model="reportPayFeeDetailInfo.conditions.roomNum">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-md" v-on:click="_queryMethod()">
                                <i class="fa fa-search"></i> 查询
                            </button>
                            <button type="button" class="btn btn-info btn-md" v-on:click="_resetMethod()"
                                    style="margin-left: 20px;">
                                <i class="fa fa-repeat"></i> 重置
                            </button>
                        </div>
                    </div>
                    <div class="row" v-show="reportPayFeeDetailInfo.moreCondition == true">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <select class="form-control-md form-control input-s-sm inline"
                                        v-model="reportPayFeeDetailInfo.conditions.primeRate">
                                    <option selected value="">请选择支付方式</option>
                                    <option v-for="(item,index) in reportPayFeeDetailInfo.primeRates" :key="index"
                                            :value="item.statusCd">{{item.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group input-group">
                                <input type="text" placeholder="请选择缴费开始时间" name="startTime"
                                       v-model="reportPayFeeDetailInfo.conditions.startTime"
                                       class=" form-control startTime">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group input-group">
                                <input type="text" placeholder="请选择缴费结束时间" name="endTime"
                                       v-model="reportPayFeeDetailInfo.conditions.endTime"
                                       class=" form-control endTime">
                            </div>
                        </div>
                    </div>
                    <div class="row" v-show="reportPayFeeDetailInfo.moreCondition == true">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <select class="form-control-md form-control input-s-sm inline"
                                        v-model="reportPayFeeDetailInfo.conditions.feeTypeCd" @change="_selectConfig()">
                                    <option selected value="">请选择费用类型</option>
                                    <option v-for="(item,index) in reportPayFeeDetailInfo.feeTypeCds" :key="index"
                                            :value="item.statusCd">{{item.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <select class="form-control-md form-control input-s-sm inline"
                                        v-model="reportPayFeeDetailInfo.conditions.configId">
                                    <option selected value="">请选择收费项</option>
                                    <option v-for="(item,index) in reportPayFeeDetailInfo.feeConfigDtos" :key="index"
                                            :value="item.configId">
                                        {{item.feeName}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <select class="form-control-md form-control input-s-sm inline"
                                        v-model="reportPayFeeDetailInfo.conditions.state">
                                    <option selected value="">请选择费用状态</option>
                                    <option v-for="(item,index) in reportPayFeeDetailInfo.states" :key="index"
                                            :value="item.statusCd">{{item.name}}
                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>缴费明细表</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportFee()">
                            <i class="fa fa-plus"></i> 导出
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">订单号</th>
                            <th class="text-center">房号</th>
                            <th class="text-center">业主</th>
                            <th class="text-center">费用项</th>
                            <th class="text-center">费用类型</th>
                            <th class="text-center">费用状态</th>
                            <th class="text-center">支付方式</th>
                            <th class="text-center">费用开始时间</th>
                            <th class="text-center">费用结束时间</th>
                            <th class="text-center">缴费时间</th>
                            <th class="text-center">应收金额(元)</th>
                            <th class="text-center">实收金额(元)</th>
                            <th class="text-center">优惠金额(元)</th>
                            <th class="text-center">减免金额(元)</th>
                            <th class="text-center">滞纳金(元)</th>
                            <th class="text-center">空置房打折(元)</th>
                            <th class="text-center">空置房减免(元)</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="(fee,index) in reportPayFeeDetailInfo.fees">
                            <td class="text-center">{{fee.oId}}</td>
                            <td class="text-center">{{fee.objName}}</td>
                            <td class="text-center">{{fee.ownerName}}</td>
                            <td class="text-center">{{fee.feeName}}</td>
                            <td class="text-center">{{fee.feeTypeCdName}}</td>
                            <td class="text-center">{{fee.stateName}}</td>
                            <td class="text-center">{{fee.primeRate}}</td>
                            <td class="text-center">{{vc.dateFormat(fee.startTime)}}</td>
                            <td class="text-center" v-if="fee.startTime >= fee.endTime">{{vc.dateFormat(fee.endTime)}}
                            </td>
                            <td class="text-center" v-else>
                                {{vc.dateSubOneDay(vc.dateFormat(fee.startTime),vc.dateFormat(fee.endTime),fee.feeFlag)}}
                            </td>
                            <td class="text-center">{{fee.createTime}}</td>
                            <td class="text-center">{{fee.receivableAmount}}</td>
                            <td class="text-center">{{fee.receivedAmount}}</td>
                            <td class="text-center">{{fee.preferentialAmount}}</td>
                            <td class="text-center">{{fee.deductionAmount}}</td>
                            <td class="text-center">{{fee.lateFee}}</td>
                            <td class="text-center">{{fee.vacantHousingDiscount}}</td>
                            <td class="text-center">{{fee.vacantHousingReduction}}</td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="15">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <div class="row">
                        <span class="col-md-1 margin-left">
                            <div class="row"><b>小计</b></div>
                            <div class="row"><b>大计</b></div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">应收: {{reportPayFeeDetailInfo.totalReceivableAmount}}元</div>
                            <div class="row">应收: {{reportPayFeeDetailInfo.allReceivableAmount}}元</div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">实收: {{reportPayFeeDetailInfo.totalReceivedAmount}}元</div>
                            <div class="row">实收: {{reportPayFeeDetailInfo.allReceivedAmount}}元</div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">优惠: {{reportPayFeeDetailInfo.totalPreferentialAmount}}元</div>
                            <div class="row">优惠: {{reportPayFeeDetailInfo.allPreferentialAmount}}元</div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">减免: {{reportPayFeeDetailInfo.totalDeductionAmount}}元</div>
                            <div class="row">减免: {{reportPayFeeDetailInfo.allDeductionAmount}}元</div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">滞纳金: {{reportPayFeeDetailInfo.totalLateFee}}元</div>
                            <div class="row">滞纳金: {{reportPayFeeDetailInfo.allLateFee}}元</div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">空置房打折: {{reportPayFeeDetailInfo.totalVacantHousingDiscount}}元</div>
                            <div class="row">空置房打折: {{reportPayFeeDetailInfo.allVacantHousingDiscount}}元</div>
                        </span>
                        <span class="col-md-1">
                            <div class="row">空置房减免: {{reportPayFeeDetailInfo.totalVacantHousingReduction}}元</div>
                            <div class="row">空置房减免: {{reportPayFeeDetailInfo.allVacantHousingReduction}}元</div>
                        </span>
                    </div>
                    <div class="row">
                        <div class="col-md-12 text-center">
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="property/searchFloor" emitChooseFloor="reportPayFeeDetail" emitLoadData="xx"></vc:create>
</div>